package org.goldfish.cookied_chatroom02.dao;

import org.goldfish.cookied_chatroom02.entity.UserBean;
import org.jetbrains.annotations.Nullable;

import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.List;

public interface Dao {

    int update(String SQL, Object target_id, Object[] bindArgs) throws SQLException;

    @Nullable
    default List<List<Object>> query(String SQL) throws SQLException {
        return query(SQL, new Object[0]);
    }

    @Nullable
    List<List<Object>> query(String SQL, Object[] conditions);
}
